package com.eigaland.change_machine.business.selectseat

import androidx.lifecycle.MutableLiveData
import com.eigland.eigaland_lib.base.BaseVM
import com.eigland.eigaland_lib.model.SeatPlan
import movie6.posprintercept2.extensions.customLaunch


public class SelectSeatFragmentVM : BaseVM(){

    var repository  = SelectSeatFragmentRepository()

    override fun initData() {

    }

    fun loadSeat(showId:String){
        customLaunch({
           var result =  repository.loadSeatData(showId)
            displaySeat.postValue(result.seatPlan)
        },{},{})
    }

    override fun destroy() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun saveData() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onResume() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    var displaySeat = MutableLiveData<SeatPlan>()

}

